Set focus to before object

Hi All,

 

I would like to know is there any dxl call to set focus on parent element

 

like the below DXL code

Object o = current
Object newo = create before o

here the script helps to create an object a level previous to current focus object.

 

Thanks in advance

BR

Nabil Saleem


maknabil - Tue Nov 24 09:12:35 EST 2015

Re: Set focus to before object
strathglass - Tue Nov 24 12:34:46 EST 2015

Note that in your example the "create before" call will only create a new object at the same level and immediately before the current object, not at a different hierarchy level!

The creation process will also set the created object as the new current object.

To select the parent (of both the new current object and the one that follows [from which position the new current object was created]): you just need to call ...

current=parent(o)

 

Re: Set focus to before object
maknabil - Tue Dec 01 00:19:23 EST 2015

strathglass - Tue Nov 24 12:34:46 EST 2015

Note that in your example the "create before" call will only create a new object at the same level and immediately before the current object, not at a different hierarchy level!

The creation process will also set the created object as the new current object.

To select the parent (of both the new current object and the one that follows [from which position the new current object was created]): you just need to call ...

current=parent(o)

 

Hi StrathGlass Thanks for your reply it worked.